`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    21:11:19 04/25/2014 
// Design Name: 
// Module Name:    drawTitle 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module drawTitle(titleON, hc, vc, blank, TitleImage);

	input signed [15:0] hc, vc;  // current horizontal and vertical display coordinates
	input blank;			 // signal to indicate if the current pixel should be on or not

	input titleON;  // active when a new game starts
	
		wire 						tg1,tg2,tg3,tg4,tg5,tg6,
				 tg7,tg8,tg9,tg10,tg11,tg12,tg13,tg14,tg15,tg16,tg17,tg18,
	  tg19,tg20,tg21,tg22,tg23,tg24,tg25,tg26,tg27,tg28,tg29,tg30,tg31;
	
	
	wire [48:1] tGrid1 = 48'b 111111110011110000110000110000110000110011111111; //C
		digGrid4 t1(tGrid1, hc, vc, blank, 16'd 250, 16'd 168, tg1);
		
	wire [48:1] tGrid2 = 48'b 111111100011100011100011100011100011100011111111; //O
		digGrid4 t2(tGrid2, hc, vc, blank, 16'd 278, 16'd 168, tg2);
		
	wire [48:1] tGrid3 = 48'b 011111110011110000011000001110000111110011111110; //S
		digGrid4 t3(tGrid3, hc, vc, blank, 16'd 306, 16'd 168, tg3);
		
	wire [48:1] tGrid4 = 48'b 110000111000111101111111110111110011110011110011; //M
		digGrid4 t4(tGrid4, hc, vc, blank, 16'd 334, 16'd 168, tg4);
		
	wire [48:1] tGrid5 = 48'b 010011110011110011110011010011010011010011010011; //MI
		digGrid4 t5(tGrid5, hc, vc, blank, 16'd 358, 16'd 168, tg5);
		
	wire [48:1] tGrid6 = 48'b 111111110011110000110000110000110000110011111111; //C
		digGrid4 t6(tGrid6, hc, vc, blank, 16'd 390, 16'd 168, tg6);
		
		//AVENGER - top half
		
	wire [48:1] tGrid7 = 48'b 001100001110011110011011110001110001110001110001; 
		digGrid4 t7(tGrid7, hc, vc, blank, 16'd 188, 16'd 204, tg7);
		
	wire [48:1] tGrid8 = 48'b 000000011110001111001111000111100111100111100111;
		digGrid4 t8(tGrid8, hc, vc, blank, 16'd 212, 16'd 204, tg8);
		
	wire [48:1] tGrid9 = 48'b 000000000000000111000011000011000011000011000011;
		digGrid4 t9(tGrid9, hc, vc, blank, 16'd 236, 16'd 204, tg9);
		
	wire [48:1] tGrid10 = 48'b 000000000000001111100111100011100011100011100011;
		digGrid4 t10(tGrid10, hc, vc, blank, 16'd 260, 16'd 204, tg10);
		
	wire [48:1] tGrid11 = 48'b 000000000000110000111110111111100011100000100000;
		digGrid4 t11(tGrid11, hc, vc, blank, 16'd 284, 16'd 204, tg11);
		
	wire [48:1] tGrid12 = 48'b 000000000000000000011111001111000111000111000110;
		digGrid4 t12(tGrid12, hc, vc, blank, 16'd 308, 16'd 204, tg12);
		
	wire [48:1] tGrid13 = 48'b 000000000000000000100111000011000011100011110011;
		digGrid4 t13(tGrid13, hc, vc, blank, 16'd 332, 16'd 204, tg13);
		
	wire [48:1] tGrid14 = 48'b 000000000000000001100011000110000110001110001110;
		digGrid4 t14(tGrid14, hc, vc, blank, 16'd 356, 16'd 204, tg14);
		
	wire [48:1] tGrid15 = 48'b 000000000000111100111110001110001110000000000000;
		digGrid4 t15(tGrid15, hc, vc, blank, 16'd 380, 16'd 204, tg15);
		
	wire [48:1] tGrid16 = 48'b 000000000011011111011100011100011100011100011111; 
		digGrid4 t16(tGrid16, hc, vc, blank, 16'd 404, 16'd 204, tg16);
		
	wire [48:1] tGrid17 = 48'b 000011111001111001001001001001000001100001100001;
		digGrid4 t17(tGrid17, hc, vc, blank, 16'd 428, 16'd 204, tg17);
		
	wire [48:1] tGrid18 = 48'b 111100111110100111100111100011100011100110111000;
		digGrid4 t18(tGrid18, hc, vc, blank, 16'd 452, 16'd 204, tg18);
		
		//AVENGER - bottom half
		
	wire [48:1] tGrid19 = 48'b 000001000011000011000011000011001111001111001111;
		digGrid4 t19(tGrid19, hc, vc, blank, 16'd 164, 16'd 236, tg19);
		
	wire [48:1] tGrid20 = 48'b 110001111111100000100000100000000000000001000011;
		digGrid4 t20(tGrid20, hc, vc, blank, 16'd 188, 16'd 236, tg20);
		
	wire [48:1] tGrid21 = 48'b 100011110011110001110001110001110001111001111000;
		digGrid4 t21(tGrid21, hc, vc, blank, 16'd 212, 16'd 236, tg21);
		
	wire [48:1] tGrid22 = 48'b 000011000111100111100111100110111110111110111100;
		digGrid4 t22(tGrid22, hc, vc, blank, 16'd 236, 16'd 236, tg22);
		
	wire [48:1] tGrid23 = 48'b 100111000011000011000011000011000111001111001110;
		digGrid4 t23(tGrid23, hc, vc, blank, 16'd 260, 16'd 236, tg23);
		
	wire [48:1] tGrid24 = 48'b 111000111000100000100011100011111111111110000000;
		digGrid4 t24(tGrid24, hc, vc, blank, 16'd 284, 16'd 236, tg24);
		
	wire [48:1] tGrid25 = 48'b 000110000110000110000110000110001110011111000000;
		digGrid4 t25(tGrid25, hc, vc, blank, 16'd 308, 16'd 236, tg25);
		
	wire [48:1] tGrid26 = 48'b 111011011111001111001111000111000111001111000000; 
		digGrid4 t26(tGrid26, hc, vc, blank, 16'd 332, 16'd 236, tg26);
		
	wire [48:1] tGrid27 = 48'b 001110001110001110000110000111000011100000000000;
		digGrid4 t27(tGrid27, hc, vc, blank, 16'd 356, 16'd 236, tg27);
		
	wire [48:1] tGrid28 = 48'b 011111001111001110001110001110111100111000000000;
		digGrid4 t28(tGrid28, hc, vc, blank, 16'd 380, 16'd 236, tg28);
		
	wire [48:1] tGrid29 = 48'b 011111011100011100011110011111011111000001000000;
		digGrid4 t29(tGrid29, hc, vc, blank, 16'd 404, 16'd 236, tg29);
		
	wire [48:1] tGrid30 = 48'b 100001000001010001110001110001110011110011000000;
		digGrid4 t30(tGrid30, hc, vc, blank, 16'd 428, 16'd 236, tg30);
		
	wire [48:1] tGrid31 = 48'b 111100101110101110100110100110100111100111000011;
		digGrid4 t31(tGrid31, hc, vc, blank, 16'd 452, 16'd 236, tg31);
		
			
		output [1:0] TitleImage;
		
		// COSMIC
assign TitleImage[1] = titleON && (tg1||tg2||tg3||tg4||tg5||tg6); 

		// AVENGER
assign TitleImage[0] = titleON && 
							(tg7||tg8||tg9||tg10||tg11||tg12||tg13||tg14||tg15||tg16||tg17||tg18||
					  tg19||tg20||tg21||tg22||tg23||tg24||tg25||tg26||tg27||tg28||tg29||tg30||tg31);

endmodule
